﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PipeHitter;

namespace ServerTest
{
    class Program
    {
        static void Main(string[] args)
        {

            Console.WriteLine("Connecting Pipe Server");

            using (PipeServer pipe = new PipeServer("jomomaspipe", new OnPipeMessage(RespondToClientMessage)))
            {
                pipe.Connect();
                Console.ReadLine();
            }
            Console.WriteLine("You have exited the PipeServer");
     
        }

        static string RespondToClientMessage(string message)
        {
            return "I did something to " + message;
        }
    }
}
